<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUUserTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //用户账户信息
		Schema::create('u_user', function (Blueprint $table) {
            $table->increments('id');
            $table->string('uname')->unique();
            $table->string('pwd');
            $table->string('phone');
            $table->enum('power', ['0', '1','2','3','5']);
            $table->string('member');
            $table->integer('grade')->unsigned();
            $table->enum('status', ['open', 'close']);
            $table->string('time')->nullable();
            $table->string('newtime')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('u_user');
    }
}
